import request from '@/utils/request'

export function getDriverList(data) {
  return request({
    url: '/driver/getDriverList',
    method: 'post',
    contentType: 'application/json',
    data
  })
}

export function cancelSig(data) {
  return request({
    url: '/driver/cancelSig',
    method: 'post',
    contentType: 'application/json',
    data
  })
}

export function getDriverDetails(data) {
  return request({
    url: '/driver/getDriverDetails',
    method: 'post',
    contentType: 'application/json',
    data
  })
}

export function addOrUpdateDriverInfo(data) {
  return request({
    url: '/driver/addOrUpdateDriverInfo',
    method: 'post',
    contentType: 'application/json',
    data
  })
}
export function searchAddress(keyword) {
  return request({
    url: '/index/searchAddress?keyword=' + keyword,
    method: 'get'
  })
}
